﻿
@using (Html.BeginForm("Create", "User", FormMethod.Post))
{
    @Html.ValidationMessage("NotUniqueUserName")
<fieldset>
    @Html.Label("UserName")
    @Html.TextBox("UserName")
    @Html.ValidationMessage("UserName")
</fieldset>
<fieldset>
    @Html.Label("Email")
    @Html.TextBox("Email")
    @Html.ValidationMessage("Email")
</fieldset>
<fieldset>
    @Html.Label("Password")
    @Html.Password("Password")
    @Html.ValidationMessage("Password")
</fieldset>
<fieldset>
    @Html.Label("ConfirmPassword")
    @Html.Password("ConfirmPassword")
    @Html.ValidationMessage("ConfirmPassword")
</fieldset>
    <input type="submit" value="submit" />
}